package com.itheima.day18.注解.元注解;


import java.lang.annotation.Annotation;

public class Demo2 extends Demo3 {
}

class Test{
    public static void main(String[] args) throws Exception {
        Class clazz = Class.forName("com.itheima.day18.注解.元注解.Demo2");
        System.out.println(clazz.isAnnotationPresent(Demo1.class));
        Annotation ann = clazz.getAnnotation(Demo1.class);
        System.out.println(ann);

//        for (Annotation annotation : clazz.getAnnotations()) {
//            System.out.println(annotation);
//        }

    }
}